//
//  SuDishViewTableViewCell.m
//  Delicious
//
//  Created by gy on 16/5/7.
//  Copyright © 2016年 gy. All rights reserved.
//

#import "SuDishViewTableViewCell.h"

@implementation SuDishViewTableViewCell

- (void)setModel:(SuDishList *)model{
    _model = model;
    [self.ImageVIEW sd_setImageWithURL:[NSURL URLWithString:_model.imageUrl]];
    self.nameLabel.text = _model.name;
    self.nickNameLabel.text = _model.referrer[@"nickname"];
    self.ingredientsLabel.text = _model.ingredients;
    self.commentandCollectionandSoOn.text = [NSString stringWithFormat:@"%@次点击 %@个收藏 %@条评论",_model.hitscount,_model.collectCount,_model.commentCount];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
